/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 占位 POST /dictApi/%E5%8D%A0%E4%BD%8D */
export async function dictApiE58Da0E4Bd8DUsingPost({
  body,
  options,
}: {
  body: API.zhanweiUsingPOSTObj;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/dictApi/%E5%8D%A0%E4%BD%8D', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除字典 必传参数说明：id POST /dictApi/delDictDataById */
export async function dictApiDelDictDataByIdUsingPost({
  body,
  options,
}: {
  body: API.DictData56a492a3743045aa87861e4aea21dc65;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/dictApi/delDictDataById', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** get字典列表 传字典类型 POST /dictApi/getDictByType */
export async function dictApiGetDictByTypeUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.dictApiGetDictByTypeUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingDictTypeduixiang>('/dictApi/getDictByType', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** list字典列表 传字典类型 POST /dictApi/listDictByType */
export async function dictApiListDictByTypeUsingPost({
  body,
  options,
}: {
  body: string[];
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingListDictTypeduixiang>('/dictApi/listDictByType', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** list字典列表-数据字典-显示 POST /dictApi/listDictToShow */
export async function dictApiListDictToShowUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingListDictTypeduixiang>('/dictApi/listDictToShow', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 保存/修改字典 必传参数说明：dictType、dictLabel、dictValue POST /dictApi/saveOrUpdateDictDataByType */
export async function dictApiSaveOrUpdateDictDataByTypeUsingPost({
  body,
  options,
}: {
  body: API.DictData8e8c8b1e5d704033B45951eaf8adeb9a;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/dictApi/saveOrUpdateDictDataByType', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
